#include "DCell.h"

using namespace DeepClasses;

DCell::DCell()
{
	m_mainObj=NULL;
	m_floorMat=NULL;
	m_fillMat=NULL;
	m_creature=NULL;
	//memset(m_pathfinderFlag,0,sizeof(m_pathfinderFlag));
}

DCell::~DCell()
{

}

void DeepClasses::DCell::GetObjectsByName( std::list<DObject*>& list, DString name )
{
	if(m_mainObj!=NULL)
	{
		if(m_mainObj->m_name==name)
			list.push_front(m_mainObj);
		BOOST_FOREACH(DObject* d, m_secObjs)
		{
			if(d->m_name==name)
				list.push_front(d);
		}
	}
	
}
